<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="format-detection" content="telephone=no;email=no">

		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/iconfont.css">
		<link rel="stylesheet" href="../../css/style.css">
		<title>专题</title>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav navbar-default">
			<a class="mui-action-back mui-icon iconfont mui-pull-left c-white">&#xe603;</a>
			<!--<a class="mui-icon iconfont mui-pull-right c-white" id="shareBtn">&#xe602;</a>-->
			<h1 class="mui-title c-white">临空港新闻</h1>
		</header>

		<script src="../../js/mui.min.js"></script>
		<script src="../../libs/zepto.min.js"></script>
		<script src="../../js/template.js"></script>
		<script src="../../js/common.js"></script>
		<script>
			mui.init({
				subpages: [{
					url: 'special-topic_sub.html',
					id: 'special-topic_sub.html',
					styles: {
						top: '44px',
						bottom: '0px'
					}
				}],
				beforeback: function() {
					var modeFlag = localStorage.getItem("modeFlag");
					if (modeFlag) {
						plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
						plus.navigator.setStatusBarBackground("#000");
					} else {
						plus.navigator.setStatusBarStyle("UIStatusBarStyleDefault");
						plus.navigator.setStatusBarBackground("#fefefe");
					}
					return true;
				}
			});
			//添加night自定义事件监听
			/*window.addEventListener('night', function(event) {
				lkg.nightMode();
			});*/
			var subPage = null;
			//添加detailId自定义事件监听
			window.addEventListener('detailId', function(event) {
				var modeFlag = localStorage.getItem("modeFlag");
				if (modeFlag) {
					plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
					plus.navigator.setStatusBarBackground("#000");
				} else {
					plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
					plus.navigator.setStatusBarBackground("#159ceb");
				}
				//获得事件参数
				var subjectId = event.detail.subjectId;
				var columnsId = event.detail.columnsId;
				//获得子页面
				if (!subPage) {
					subPage = plus.webview.getWebviewById('special-topic_sub.html');
				}
				//触发子页面的specialSub事件
				mui.fire(subPage, 'specialSub', {
					subjectId: subjectId,
					columnsId: columnsId
				});
			});
			/*//分享按钮
			var contentWebview = null;
			document.getElementById('shareBtn').addEventListener('tap', function() {
				if (contentWebview == null) {
					contentWebview = plus.webview.currentWebview().children()[0];
				}
				contentWebview.evalJS("mui('#settings').popover('toggle')");
			});*/
		</script>
	</body>

</html>